<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        body {
            background-color: aquamarine;
        }
        .box {
            display: flex;
            justify-content: center;
            align-items: center;
            margin: 200px auto;
        }
        .item {
            position: relative;
            width: 120px;
            height: 120px;
            margin: 0 2px;
            cursor: pointer;
            
            transition: all .2s;
            transform-style: preserve-3d;
        }
        img {
            width: 100%;
            height: 100%;
            border-radius: 5px;
            -webkit-box-reflect: below 1px linear-gradient(transparent, #8002);
        }
        .item:hover {
            transform:scale(1.2);
            z-index: 999;
        }
        .box:hover .item:not(:hover) {
            transform: perspective(588px) scale(0.9) rotateY(45deg);
            margin: 0 -20px;
        }
        .box .item:hover ~ .item {
            transform: perspective(588px) scale(0.9) rotateY(-45deg);
        }
    </style>
</head>
<body>
    <div class="box">
        <div class="item"><img src="./img/1-b48af0136e67.png" alt=""></div>
        <div class="item"><img src="./img/2.png" alt=""></div>
        <div class="item"><img src="./img/3.png" alt=""></div>
        <div class="item"><img src="./img/4.png" alt=""></div>
        <div class="item"><img src="./img/5.png" alt=""></div>
    </div>
</body>
</html>